<!DOCTYPE html>
<html>
<script src="/static/HPLUS/js/jquery-1.7.2.min.js"></script>
    <link href="/static/HPLUS/css/bootstrap.min.css?v=3.3.5" rel="stylesheet">
    <link href="/static/HPLUS/css/font-awesome.min.css?v=4.4.0" rel="stylesheet">
    <link href="/static/HPLUS/css/animate.min.css" rel="stylesheet">
    <link href="/static/HPLUS/css/style.min.css?v=4.0.0" rel="stylesheet">
 <link href="/static/HPLUS/css/plugins/chosen/chosen.css" rel="stylesheet">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<head>

<body id="body-right">
    <!-- 标题栏 -->
    <div class="main-title">
        <h1>数据目录</h1>
        <hr>
    </div>
    <!-- /标题栏 -->

 

    <!-- 应用列表 -->
    <div class="col-sm-12">
        <?php if(!empty($files)){ ?>
            <table class="table2 table table-bordered">
                <thead>
                    <tr>
                        <!-- <th width=""><input class="check-all" checked="chedked" type="checkbox" value=""></th> -->
                        <th>目录</th>
                       
                    </tr>
                </thead>
                <tbody>
                  <?php foreach ($files as $key => $v): ?>
                        <tr>
                            <td class="action">
                                <a class="btn btn-outline btn-primary btn-xs" href="/admin/backup/chekbackdir/dir/{:encode($defaultdir.$v.'/')}">{$v}</a>&nbsp;
                            </td>
                        </tr>
                 <?php endforeach ?>
                </tbody>
            </table>
    <?php }else{ ?>
              <table class="table2 table table-bordered">
                <thead>
                    <tr>
                        <!-- <th width=""><input class="check-all" checked="chedked" type="checkbox" value=""></th> -->
                        <th>目录</th>
                        <th>操作</th>
                       
                    </tr>
                </thead>
                <tbody>
                <tr>
                    <td><a href="/admin/backup/chekbackdir">返回目录../</a></td>
                    <td></td>
                </tr>
                  <?php foreach ($fils as $key => $v): ?>
                        <tr>
                            <td class="action">
                                <span class="btn  btn-xs" href="javascript:;">{$v}</span>&nbsp;
                            </td>
                            <td>
                            <a class="btn btn-outline btn-primary btn-xs" href="/admin/backup/restore/sqlfile/{:encode($dir.$v)}">恢复</a>&nbsp;    
                            </td>
                        </tr>
                 <?php endforeach ?>
                </tbody>
            </table>
     <?php } ?>
    </div>

</body>
</html>